package xio.ccf_201412;

import java.util.Scanner;

/**
 * ccf 201412-1 门禁系统 100分
 * Created by Xio on 2017/11/3 
 */
public class AccessControlSys {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int[] array = new int[1000];
		
		for (int i = 0; i < n; i++) {
			int m = scanner.nextInt();
			array[m]++;
			System.out.print(array[m]+" ");
		}
		
	}
}
